<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC >

<%@ page import="com.shopping.user.*" %>

<% 
	User u = (User)session.getAttribute("user");
	if(u == null ) {
		out.println("请先登录!");
		//response.sendRedirect("userlogin.jsp");
		out.println("<br>");
%>

	   <a href="userlogin.jsp">登录</a><br>
       <a href="register.jsp">注册新用户</a>
     
<%
       return;
	}
	
%>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
	<a href="usermodify.jsp">修改个人信息</a>
</body>
</html>